package com.xry.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName order
 */
@TableName(value ="`order`")
@Data
public class Order {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("order_id")
    private String orderId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 比赛id
     */
    @TableField("match_id")
    private Integer matchId;

    /**
     * 座位id
     */
    @TableField("seat_id")
    private Integer seatId;

    /**
     * 订单金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 订单状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("createtime")
    private Date createtime;

    /**
     *
     */
    @TableField("deleted")
    private Integer deleted;

    // ... 其他方法保持不变
}
